import {makeAutoObservable} from "mobx"
import {getClasssPlanTree,selectStationLabel} from '@/services/index'

class Defence {
    constructor(){
        makeAutoObservable(this)
    }   
    //仓库中定义的属性
    getClasssPlanTree = []
    getSelectStationLabel=[]

    //定义仓库中的方法
    async getRankList(){
        //getClasssPlanTree
        let result=await getClasssPlanTree();
        if(result.data){
            this.getClasssPlanTree=result.data;
        }

        let res=await selectStationLabel();
        if(res.data){
            this.getSelectStationLabel=res.data;
        }
    }


}
export default new Defence